package com.whh.chapter1.demo6;

import java.util.Date;
import java.util.concurrent.TimeUnit;

public class DataSourceLoader implements Runnable{

	/**
	 * 睡眠4秒
	 */
	@Override
	public void run() {
		System.out.println("Beginning data sources loading: " + new Date());
		try {
			TimeUnit.SECONDS.sleep(4);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		System.out.println("Data sources loading has finish" + new Date());
	}
	
}
